package com.neoCalf.neoCommon.enums;


import com.neoCalf.neoCommon.utils.DataTool;
import lombok.Getter;

@Getter
public enum BeautyAccountStatusEnum {
    NO_USE(0, "未使用"), USE_ED(1, "已使用");
    private final int status;
    private final String description;

    BeautyAccountStatusEnum(int status, String description) {
        this.status = status;
        this.description = description;
    }

    public BeautyAccountStatusEnum getByName(String name) {
        if (!DataTool.isStrLegal(name)) {
            return null;
        }
        for (BeautyAccountStatusEnum beautyAccountStatusEnum : BeautyAccountStatusEnum.values()) {
            if (beautyAccountStatusEnum.name().equals(name)) {
                return beautyAccountStatusEnum;
            }
        }
        return null;
    }
}
